package net.huashitong.ssydt.user.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.08.10
 */
public class BaseLoginVO implements Serializable {

    private static final long serialVersionUID = 2301563448915662453L;
    @ApiModelProperty(value = "终端（Android,iOS,Browser）", required = true)
    @NotBlank(message = "终端不能为空")
    private String terminal;//终端（android,ios,web）

    @ApiModelProperty(value = "设备码")
    private String deviceCode;//设备码

    @ApiModelProperty(value = "设备类型（硬件型号）")
    private String deviceType;//设备类型（硬件型号）

    @ApiModelProperty(value = "设备系统")
    private String deviceOperation;//设备系统

    @ApiModelProperty(value = "软件版本（应用版本）")
    private String clientVersion;//软件版本（应用版本）

    @ApiModelProperty(value = "手机号")
    private String mobile;

    public String getTerminal() {
        return terminal;
    }

    public void setTerminal(String terminal) {
        this.terminal = terminal;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDeviceOperation() {
        return deviceOperation;
    }

    public void setDeviceOperation(String deviceOperation) {
        this.deviceOperation = deviceOperation;
    }

    public String getClientVersion() {
        return clientVersion;
    }

    public void setClientVersion(String clientVersion) {
        this.clientVersion = clientVersion;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("BaseLoginVO{");
        sb.append("terminal='").append(terminal).append('\'');
        sb.append(", deviceCode='").append(deviceCode).append('\'');
        sb.append(", deviceType='").append(deviceType).append('\'');
        sb.append(", deviceOperation='").append(deviceOperation).append('\'');
        sb.append(", clientVersion='").append(clientVersion).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
